﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using M3G;

namespace MyTestProject {
    public class TestTextureCube {
        [Fact]
        public void TestConstructor () {
            var img = new ImageCube (ImageCube.RGB, 16);
            var tex = new TextureCube (img);

            Assert.Equal (img, tex.Image);
        }

        [Fact]
        public void TestSetImage () {
            var img1 = new ImageCube (ImageCube.RGB, 16);
            var img2 = new ImageCube (ImageCube.RGB, 16);
            var tex = new TextureCube (img1);

            tex.SetImage (img2);

            Assert.Equal (img2, tex.Image);
        }
    }
}
